package com.zyx.reggie.service;

import com.zyx.reggie.domain.ShoppingCart;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author Zhu
* @description 针对表【shopping_cart(购物车)】的数据库操作Service
* @createDate 2023-03-27 18:58:29
*/
public interface ShoppingCartService extends IService<ShoppingCart> {

    /**
     * 清空购物车
     */
    void clean();

    /**
     * 添加购物车
     * @param shoppingCart
     * @return
     */
    ShoppingCart add(ShoppingCart shoppingCart);

    /**
     * 减少菜品套餐到购物车
     * @param shoppingCart
     * @return
     */
    ShoppingCart sub(ShoppingCart shoppingCart);
}
